package org.dtrd.modules.record.entity.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.config.system.Constant;

import java.util.Date;

/**
 * @author qr
 * @date 2022/2/24 17:49
 */
@ApiModel("分页获取")
@Getter
@Setter
public class SugarValueRequest{

    @ApiModelProperty(value = "患者id", required = true)
    private Integer patientId;

    @ApiModelProperty(value = "结束时间", required = true, notes = "yyyy-MM-dd")
    @JsonFormat(pattern = Constant.TIME_PATTERN_SDF, timezone = "GMT+8")
    private Date startTime;

    @ApiModelProperty(value = "开始时间", required = true, notes = "yyyy-MM-dd")
    @JsonFormat(pattern = Constant.TIME_PATTERN_SDF, timezone = "GMT+8")
    private Date endTime;

    @ApiModelProperty(value = "时间类型", notes = "1-早餐前,2-早餐后,3-午餐前,4-午餐后,5-晚餐前,6-晚餐后,7-睡前,8-凌晨")
    private Integer timeType;

    @ApiModelProperty(value = "来源类型", notes = "0-客户端,9-微信,10-瞬感蓝牙版,11-瞬感移动版,12-小糖医,13-爱奥乐,14-小程序")
    private Integer sourceType;

    @ApiModelProperty(value = "排序规则", notes = "1-正序, 2-倒序")
    private Integer orderType;
}
